"""
演示for循环
要求：数数字符串里有多少个a
"""
name = "itheima is a brand of itcast"
i = 0
for x in name :
    if x == 'a':
        i = i + 1
print(f"在这句话中有{i}个a")